<?php
require_once($_SERVER['DOCUMENT_ROOT']."/defaultconf.mex");
require_once($_SERVER['DOCUMENT_ROOT']."/Modules/RHFK55DD/modconf.mex");
MYTCONN(); 

if ($_POST['crsc_Name'] > 0) {
	$GET = $GLOBALS['MYT']->db_array("SELECT * FROM systemoffice.ccenter_resourcesitem WHERE crst_ID = {$_POST['crsc_Name']}");
	
	if ($GET[1]['crst_Property1'] == '') {
	
	echo '<script charset="utf-8" >
	modalwindow(\'Detalhes do Item\',\''.$MODURL.'frm_resourceitem.php?RSID='.$_POST['crsc_Name'].'\',400,300);
	</script>';
	
	}
}